//
//  UIViewController+BarButtonItem.h
//  TravelGuideMdd
//
//  Created by Song Xiaofeng on 13-7-2.
//  Copyright (c) 2013年 mafengwo.com. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    
    NavigationBarItemTypeBack,
    
    NavigationBarItemTypeLeft,
    
    NavigationBarItemTypeRight,
    
} NavigationBarItemType;

@interface UIViewController (BarButtonItem)

- (void)setControllerTitle:(NSString *)title;

-(void)setBarButtonWithNormalImg:(UIImage*)normalImgStr
                  highlightedImg:(UIImage*)highlightedImgStr
                          target:(id)target
                          action:(SEL)action
                            type:(NavigationBarItemType)type;

-(void)setBarButtonWithNormalImgName:(NSString*)normalImgStr
                      highlightedImg:(NSString*)highlightedImgStr
                              target:(id)target
                              action:(SEL)action
                                type:(NavigationBarItemType)type;




-(void)setBarButtonWithNormalImg:(UIImage*)normalImgStr
                  highlightedImg:(UIImage*)highlightedImgStr
                     disabledImg:(UIImage*)disabledImgStr
                          target:(id)target
                          action:(SEL)action
                            type:(NavigationBarItemType)type;

-(void)setBarButtonWithNormalImgName:(NSString*)normalImgStr
                      highlightedImg:(NSString*)highlightedImgStr
                         disabledImg:(NSString*)disabledImgStr
                              target:(id)target
                              action:(SEL)action
                                type:(NavigationBarItemType)type;

@end
